﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNetNuke.Web.Api;

namespace DnnDash.SimpleDashboard.Services
{
    public class DashRouteMapper : IServiceRouteMapper
    {
        public void RegisterRoutes(IMapRoute routeManager)
        {
            routeManager.MapHttpRoute("DnnDash_SimpleDashboard", "default"
                   , "{controller}/{action}", new[] { "DnnDash.SimpleDashboard.Services" });

            routeManager.MapHttpRoute("DnnDash_SimpleDashboard", "default"
                    , "{controller}/{action}/{p}", new[] { "DnnDash.SimpleDashboard.Services" });

        }
    }
}
